package com.hcinfos.gsoo.json;

import org.codehaus.jackson.type.TypeReference;
import org.json.JSONObject;

import com.hcinfos.gsoo.enity.User;
import com.hcinfos.gsoo.util.LogUtil;

public class UserJson extends BaseJson {
	public static User getUserByJson(String result) throws Exception {

		JSONObject obj = new JSONObject(result);
		String arrayStr = obj.getString("data");
		User user = objectMapper.readValue(arrayStr, new TypeReference<User>() {
		});
		return user;
	}
}
